package com.yuwenxin.service.impl;

import com.yuwenxin.bean.Music;
import com.yuwenxin.dao.MusicDao;
import com.yuwenxin.dao.impl.MusicDaoImpl;
import com.yuwenxin.service.MusicService;

public class MusicServiceImpl implements MusicService {
    private MusicDao dao = new MusicDaoImpl();
    @Override
    public Music musicUpload(Music music) throws Exception {
        dao.insert(music);
        return music;
    }

    @Override
    public Music musicDownload(Music music) {
        return null;
    }

    @Override
    public Music deleteMusic(Music music) {
        return null;
    }

    @Override
    public Music musicQuery() throws Exception {
        return null;
    }

    @Override
    public Music findMusicByName(String name) throws Exception {
        return (Music) dao.findByName(name);
    }
}
